import config
import importlib

import main_windows

import connect_widget
import nodes_widget
import rename_widget
import setting_widget

import create_node_exp
import gen_name_exp

import regex_match
import attr_regex_match
import rename
import setting

import gen_name_exp_dialog
import regex_match_dialog
import attr_regex_match_dialog

mouldNames = [config,
              importlib,

              main_windows,

              connect_widget,
              nodes_widget,
              rename_widget,
              setting_widget,

              create_node_exp,
              gen_name_exp,
              rename,
              setting,

              regex_match,
              attr_regex_match,

              gen_name_exp_dialog,
              regex_match_dialog,
              attr_regex_match_dialog,

              ]

# 导入所有模块
if config.DEBUG:
    for mould in mouldNames:
        # 在 debug 模式下reload 所有模块
        importlib.reload(mould)
